﻿@using Online_Course.Web.Apps
@model PageList<Online_Course.Domain.Student_Course>
@{
    ViewBag.Title = "Index";
    Layout = null;
}


<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>选课结果</title>
    <link href="/Content/Style/style.css" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Style/button.css")" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="/Scripts/js/jquery.js"></script>

    <script language="javascript">
        $(function () {
            //导航切换
            $(".imglist li").click(function () {
                $(".imglist li.selected").removeClass("selected")
                $(this).addClass("selected");
            })
        })
    </script>
    <script type="text/javascript">
        $(document).ready(function () {

            $(".click").click(function () {
                $(".tip").fadeIn(200);
            });

            $(".tiptop a").click(function () {
                $(".tip").fadeOut(200);
            });

            $(".sure").click(function () {
                $(".tip").fadeOut(100);
            });

            $(".cancel").click(function () {
                $(".tip").fadeOut(100);
            });

        });
    </script>

</head>
<body>
    <div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li><a href="#">选课详情</a></li>
        </ul>
    </div>

    <div class="rightinfo">
        <div class="tools ">
        </div>

        <table class="tablelist">
            <thead>
                <tr>
                    <th width="100px;">姓名</th>
                    <th>课程名</th>
                    <th>任课教师</th>
                    <th>课程人数</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    if (item.AuditActive==1)
                    {
                        <tr>
                        <td>
                            @item.Student.Name
                        </td>
                        <td>
                            @item.Course.Name
                        </td>
                        <td>
                            @item.TeacherName
                        </td>
                        <td>
                            @item.Course.ChoosePeople/@item.Course.Maxpeople
                        </td>
                        <td>
                            @Html.ActionLink("导出", "CorrectHomeWork"
                                , new { id = item.ID }
                             , new { onclick = " return confirm('您确定要导出课表吗?');", @class = "tablelink" })
                        </td>
                    </tr>
                        
                    }
                }
            </tbody>
        </table>
        <table style="width:100%;">
            <tr>
                <td>
                    <div class="pager" style="align-content: center; width: 600px; display:inline;">
                        @Html.Raw(Html.Pager(Model.PageIndex, Model.PageSize, Model.TotalCount, Model.PageIndex))
                    </div>
                </td>
            </tr>
        </table>

        <script type="text/javascript">
            $('.tablelist tbody tr:odd').addClass('odd');
        </script>
    </div>

</body>
</html>
